/*
 * Author: vyouzhi <vyouzhi@163.com>
 * http://www.xda.cn
 *
 * File: client_lib.h
 * Create Date: 2011-07-11 10:05:49
 *
 */
#ifndef CLIENT_H_
#define CLIENT_H_

#define MAXDATASIZE 1024*1024*2

/*char data[]="Content-Length: 95 \r\n  <?xml version=\"1.0\" encoding=\"utf-8\"?>\n<sql><rw>u</rw><sub></sub></sql>\n";*/

int client_init(char *host, int port);
int client_send(const char *sendData, int sendLen);
int client_recv(char **recvBuf);
void client_close(void);

#endif /* CLIENT_H_ */
/* vim: set ts=4 sw=4: */

